package com.cskaoyan.bean.chaosbean.home;

import com.cskaoyan.bean.po.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author dengqwe
 * @datetime 2023/1/1 16:58
 * @description: TODO:
 */
/*
* 响应homeindex的Vo
* */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
public class HomeIndexVo {
    private List<MarketAd> banner;
    private List<MarketBrand> brandList;
    private List<MarketCategory> channel;
    private List<MarketCoupon> couponList;
    private List<FloorGoodsListDTO> floorGoodsList;//里面嵌套一个goodlist
    private List<MarketGoods> hotGoodsList;
    private List<MarketGoods> newGoodList;
    private List<MarketTopic> topicList;

    @NoArgsConstructor
    @Data
    public static class FloorGoodsListDTO {
        @JsonProperty("name")
        private String name;
        @JsonProperty("goodsList")
        //private List<CE.DataDTO.FloorGoodsListDTO.GoodsListDTO> goodsList;
        private List<MarketGoods> goodsList;
        @JsonProperty("id")
        private Integer id;
        /*@NoArgsConstructor
        @Data
        public static class GoodsListDTO {
            @JsonProperty("id")
            private Integer id;
            @JsonProperty("name")
            private String name;
            @JsonProperty("brief")
            private String brief;
            @JsonProperty("picUrl")
            private String picUrl;
            @JsonProperty("isNew")
            private Boolean isNew;
            @JsonProperty("isHot")
            private Boolean isHot;
            @JsonProperty("counterPrice")
            private Integer counterPrice;
            @JsonProperty("retailPrice")
            private Integer retailPrice;
        }*/
    }

}
